package com.example.cloud.service.system;

import com.alibaba.fastjson.JSONArray;
import com.example.cloud.model.system.Menu;
import com.example.cloud.model.system.Role;

import java.util.List;

/**
 * Created by wangtao on 2018/2/3.
 */
public interface MenuService {
    List<Menu> findAllFromCache();
    List<Menu> findAllByMenuFromCache();
    List<Menu> findAllByButtonFromCache();
    JSONArray createMenuTree(List<Menu> menus, Integer type);
    List<Menu> findAllButtonFromCache(long parentId);
    List<Menu> getMenuList(Role role, Menu menu);
    void loadCache();
}
